<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@page contentType="text/javascript" %>

var PrivateUrls = {
INBOX 				: "<c:url value="/inbox"/>",
GET_SUBCATEGORIES   : "<c:url value="/subcategories"/>",
CREATE_EVENT		: "<c:url value="/create-event"/>",
UPLOAD_FILE			: "<c:url value="/upload-file"/>",
CHANGE_EMAIL		: "<c:url value="/change-email"/>",
CHANGE_FACEBOOK		: "<c:url value="/change-facebook"/>",
CHANGE_TWITTER		: "<c:url value="/change-twitter"/>",
CHANGE_WEBSITE		: "<c:url value="/change-website"/>",
CHANGE_IMG			: "<c:url value="/change-image"/>",
UPLOAD_FILE			: "<c:url value="/upload-file"/>",
REPEAT_MONTHLY 		: "<c:url value="/repeat-monthly"/>",
REPEAT_WEEKLY 		: "<c:url value="/repeat-weekly"/>",
REPEAT_DAILY 		: "<c:url value="/repeat-daily"/>",
GET_TIMEZONE_OFFSET : "<c:url value="/timezone-offset"/>",
};

<sec:authorize access="isAuthenticated() and hasRole('ROLE_ADMIN')">
var AdminUrls = {
SEARCH_USERS 		: "<c:url value="/get-users"/>",
SEARCH_ROLES 		: "<c:url value="/get-roles"/>",
REMOVE_USER 		: "<c:url value="/rm-user"/>",
CREATE_ADMIN_USER	: "<c:url value="/create-admin-user"/>",
CHANGE_USER_STATUS	: "<c:url value="/chng-user-status"/>",
CREATE_ROLE			: "<c:url value="/create-role"/>",
};	
</sec:authorize>
